package models

type BookPostForm struct {
	Title        string `json:"title" validate:"required"`
	Author       string `json:"author"`
	Publisher    string `json:"publisher"`
	Description  string `json:"description" validate:"required"`
	Isbn         string `json:"isbn"`
	SerialuNmber string `json:"serialuNmber" validate:"required"`
	State        int8   `json:"state" validate:"required"`
	Remark       string `json:"remark"`
	Cover        string `json:"cover"`
}

type BookPutForm struct {
	Title        string `json:"title" validate:"required"`
	Author       string `json:"author" validate:"required"`
	Publisher    string `json:"publisher" validate:"required"`
	Description  string `json:"description" validate:"required"`
	Isbn         string `json:"isbn" validate:"required"`
	SerialuNmber string `json:"serialuNmber" validate:"required"`
	State        int8   `json:"state" validate:"required"`
	Remark       string `json:"remark" validate:"required"`
	Cover        string `json:"cover" validate:"required"`
}

type BookInfo struct {
	BookInfo *Book `json:"book"`
}

type BooksInfo struct {
	BookInfo []Book `json:"books"`
}
